package com.hiof.servercommunication.exception;

@SuppressWarnings("serial")
public class NetworkException extends Exception {
	private String errorMessage;

	public NetworkException(String errorMessage) {
		super();
		this.errorMessage = errorMessage;
	}

	/**
	 * @param errorMessage
	 *            the errorMessage to set
	 */
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	/**
	 * @return the errorMessage
	 */
	public String getErrorMessage() {
		return "Network Error \n"
				+ errorMessage;
	}

}
